package com.dorm.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.dorm.common.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 宿舍楼实体类
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("building")
public class Building extends BaseEntity {
    @TableId(type = IdType.AUTO)
    private Long id;
    
    private String buildingNo;      // 楼栋号
    private String buildingName;    // 楼栋名称
    private Integer floors;         // 楼层数
    private String manager;         // 负责人
    private String managerPhone;    // 负责人电话
    private String type;            // 类型：男生宿舍/女生宿舍
    private String description;     // 描述
}

